<?php
require_once("vcl/vcl.inc.php");
require_once("lib/db_connection.php");
//Includes
use_unit("forms.inc.php");
use_unit("extctrls.inc.php");
use_unit("stdctrls.inc.php");

//Class definition
class Laborline_delete extends Page
{
       public $hiddenLoc = null;
       function Laborline_deleteCreate($sender, $params)
       {
       $loc = $_GET['loc_id'];
       $this->hiddenLoc->setValue($loc);

       $result = mysql_query("delete from rou_job_loc_tbl where loc_id='".$this->hiddenLoc->getValue()."'")
       or die(mysql_error());
       redirect('route_job_loc_list.php');


       }

}

global $application;

global $Laborline_delete;

//Creates the form
$Laborline_delete=new Laborline_delete($application);

//Read from resource file
$Laborline_delete->loadResource(__FILE__);

//Shows the form
$Laborline_delete->show();

?>